package lumis.portal.serialization.operation;

import lumis.portal.PortalException;
import lumis.portal.serialization.DeserializationContext;

/**
 * Performs a config persistence (add or update) operation
 *
 * @version $Revision: 5552 $ $Date: 2007-01-09 11:26:54 -0200 (Tue, 09 Jan 2007) $
 * @since 4.0.7
 */
public interface IConfigPersister
{
	/**
	 * Performs a config persistance (add or update) operation
	 * @param deserializationContext
	 * @param config
	 * @param firstPersistence
	 * @return
	 * @throws PortalException
	 */
	public boolean persistConfig(DeserializationContext deserializationContext, Object config, boolean firstPersistence) throws PortalException;
}
